package com.tsit.study.dubbo.provider.feign;

import com.tsit.study.dubbo.provider.entity.User;
import com.tsit.study.dubbo.provider.feign.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author wangxuzhi
 * @date 2020/11/17 20:26
 */
@FeignClient(name = "study-dubbo-provider", fallback = UserServiceFallback.class)
public interface RemoteUserService {

    @GetMapping("/user/list")
    List<User> getUserList();
}
